package com.jianqiao.delivery.midtrans.domain.vo;

import lombok.Data;

/**
 * author: cyx
 * create: 2024/8/7 10:55
 **/
@Data
public class CustomerDetailsVo {
    /** 姓氏 **/
    private String first_name;
    /** 名 **/
    private String last_name;
    /** 邮箱 **/
    private String email;
    /** 电话号码 **/
    private String phone;

    public CustomerDetailsVo(String first_name, String last_name, String email, String phone) {
        this.first_name = first_name;
        this.last_name = last_name;
        this.email = email;
        this.phone = phone;
    }

    public static CustomerDetailsVoBuild builder(){
        return new CustomerDetailsVoBuild();
    }

    public static class CustomerDetailsVoBuild{
        /** 姓氏 **/
        private String first_name;
        /** 名 **/
        private String last_name;
        /** 邮箱 **/
        private String email;
        /** 电话号码 **/
        private String phone;

        CustomerDetailsVoBuild(){

        }

        public CustomerDetailsVoBuild first_name(final String first_name){
            this.first_name = first_name;
            return this;
        }

        public CustomerDetailsVoBuild last_name(final String last_name){
            this.last_name = last_name;
            return this;
        }

        public CustomerDetailsVoBuild phone(final String phone){
            this.phone = phone;
            return this;
        }

        public CustomerDetailsVoBuild email(final String email){
            this.email = email;
            return this;
        }

        public CustomerDetailsVo build(){
            return new CustomerDetailsVo(this.first_name ,this.last_name ,this.email ,this.phone);
        }
    }
}
